<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* @framework : Codeigniter Framework
* 
* @author: fatangel26
* 
*/
    
    class MY_Session extends Native_Session
    {
        var $CI;
        
        public function __construct()
        {
            parent::__construct();
            
            //$this->CI =& get_instance();
            
        }        
        
        public function is_Admin()
        {
            $admin = $this->userdata('admin');
            
            if(isset($admin['loggedin']))
            {
                if($admin['loggedin'] == 1)
                   return TRUE;
            }
            return FALSE;
        }
        
    }

/* End of file my_session.php */
/* Location: ./libraries/my_session.php */